<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>out</title>
</head>
<body>

<h3><c:out value="haha"></c:out></h3>

<%request.setAttribute("name", "tomcat"); %>

<h3><c:out value="${requestScope.name}"></c:out></h3>
<h3><c:out value="${requestScope['name']}"></c:out></h3>
<!-- 设置默认值 -->
<h3><c:out value="${requestScope['nam']}" default="没有值"></c:out></h3>
<!-- 是否转义 -->
<h3><c:out value="&ltXML&gt" escapeXml="false" ></c:out></h3>
<c:out value="${ggg}" default="没有值"></c:out>
</body>
</html>





